package org.xg.study.pd;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName SSODecorator
 * @date 2021/9/15 14:14
 **/
public abstract class SSODecorator implements HandlerInterceptor {
    private HandlerInterceptor handlerInterceptor;

    private SSODecorator() {

    }

    public SSODecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request, response, handler);
    }
}
